package com.caijin.common.core.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 章节前端展示模型
 *
 * @author Peas
 */
@Data
@ApiModel(value = "Catalogue的VO模型", description = "章节列表VO模型")
public class CatalogueVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "目录编号，主键，唯一标识，自增")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String label;

    @ApiModelProperty(value = "文本内容")
    private String content;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "子目录")
    private List<CatalogueVO> children;
}
